
//旋转
define(['progress.min'], function() {
		var mySwiper = new Swiper('.swiper-container', {
			progress: true,
			loop: false,
			onProgressChange: function(swiper) {
				for (var i = 0; i < swiper.slides.length; i++) {
					var slide = swiper.slides[i];
					var progress = slide.progress;
					swiper.setTransform(slide, 'rotate(' + 360 * progress + 'deg)');
				}
			},
			onSetWrapperTransition: function(swiper, speed) {
				for (var i = 0; i < swiper.slides.length; i++) {
					swiper.setTransition(swiper.slides[i], speed);
				}
			},
			onSlideChangeEnd: function(swiper) {
				window.initAni($(swiper.visibleSlides), swiper.activeLoopIndex);
				window.clearAni($(swiper.wrapper).children().eq(swiper.previousIndex));
			}
		})
	
});